home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / angelpang.swf / scripts / frame_11 / PlaceObject2_405_172 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2006-06-13  |  2.4 KB  |  88 lines

  1. onClipEvent(enterFrame){
  2.    if(_parent.move_play)
  3.    {
  4.       if(ishit)
  5.       {
  6.          if(this.hit.hitTest(_parent.hero.Hit))
  7.          {
  8.             _parent.canPlay = false;
  9.             _parent.player_move = false;
  10.             _parent.hero.gotoAndStop("die");
  11.          }
  12.          g += _parent.GGG;
  13.          this._x += speedX;
  14.          sn = Math.abs(Math.cos(3.141592653589793 * g / 180));
  15.          this._y = 430 - this._height / 2 - sn * distance;
  16.          if(this.hitTest(_parent.hit_L))
  17.          {
  18.             trace("hitLLLLLLLLLLLLLLL");
  19.             speedX = 5 + zzz_num;
  20.          }
  21.          if(this.hitTest(_parent.hit_R))
  22.          {
  23.             trace("hitRRRRRRRRRR");
  24.             speedX = -5 + (- zzz_num);
  25.          }
  26.       }
  27.    }
  28.    if(Att_hit)
  29.    {
  30.       if(this.hitTest(_parent.arrow_1.hit))
  31.       {
  32.          ishit = false;
  33.          _parent.arrow_1.gotoAndStop(1);
  34.          _parent.mball2._x = this._x + 50;
  35.          _parent.mball1._x = this._x - 50;
  36.          this.play();
  37.       }
  38.       if(this.hitTest(_parent.arrow_2.hit))
  39.       {
  40.          ishit = false;
  41.          _parent.arrow_2.gotoAndStop(1);
  42.          _parent.mball2._x = this._x + 50;
  43.          _parent.mball1._x = this._x - 50;
  44.          this.play();
  45.       }
  46.       if(this.hitTest(_parent.arrow_3.hit))
  47.       {
  48.          ishit = false;
  49.          _parent.arrow_3.gotoAndStop(1);
  50.          _parent.mball2._x = this._x + 50;
  51.          _parent.mball1._x = this._x - 50;
  52.          this.play();
  53.       }
  54.       if(this.hitTest(_parent.arrow_4.hit))
  55.       {
  56.          ishit = false;
  57.          _parent.arrow_4.gotoAndStop(1);
  58.          _parent.mball2._x = this._x + 50;
  59.          _parent.mball1._x = this._x - 50;
  60.          this.play();
  61.       }
  62.       if(this.hitTest(_parent.arrow_5.hit))
  63.       {
  64.          ishit = false;
  65.          _parent.arrow_5.gotoAndStop(1);
  66.          _parent.mball2._x = this._x + 50;
  67.          _parent.mball1._x = this._x - 50;
  68.          this.play();
  69.       }
  70.       if(this.hitTest(_parent.arrow_7.hit))
  71.       {
  72.          ishit = false;
  73.          _parent.arrow_7.gotoAndStop(1);
  74.          _parent.mball2._x = this._x + 50;
  75.          _parent.mball1._x = this._x - 50;
  76.          this.play();
  77.       }
  78.       if(this.hitTest(_parent.arrow_8.hit))
  79.       {
  80.          ishit = false;
  81.          _parent.arrow_8.gotoAndStop(1);
  82.          _parent.mball2._x = this._x + 50;
  83.          _parent.mball1._x = this._x - 50;
  84.          this.play();
  85.       }
  86.    }
  87. }
  88.